package tests;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class MyFrame extends JFrame 
{ 
  MyFrame() 
  { 
    setLayout(new FlowLayout()); 
    add(new Label("label1")); 
    add(new TextField(12)); 
    add(new Button("but1")); 
	setUndecorated(true);
    pack(); 
  } 
 
  public static void main(String args[]) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { 
	//System.setProperty("sun.java2d.noddraw", Boolean.TRUE.toString());
	UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

	MyFrame f = new MyFrame(); 
	f.setVisible(true);  
  } 
}
